﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Linq.Expressions;

namespace IRC.IRepairClouds.DataLayer.Expressions
{
    public sealed class ListInitExpressionBuilder<T> : ExpressionBuilder<T>
    {
        public ListInitExpression SpecificExpression
        {
            get { return (ListInitExpression)Expression; }
        }

        internal ListInitExpressionBuilder(ListInitExpression expression)
            : base(expression)
        {
        }

        public static implicit operator ListInitExpression(ListInitExpressionBuilder<T> expressionBuilder)
        {
            return expressionBuilder.SpecificExpression;
        }

        public static implicit operator ListInitExpressionBuilder<T>(ListInitExpression expression)
        {
            return new ListInitExpressionBuilder<T>(expression);
        }
    }
}
